package org.jeecg.modules.inspect.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 异常信息
 * @Author: jeecg-boot
 * @Date:   2024-03-16
 * @Version: V1.0
 */
@Data
@TableName("ins_classes_unusual_msg")
@ApiModel(value="ins_classes_unusual_msg对象", description="异常信息")
public class InsClassesUnusualMsg implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**异常标题*/
    @Excel(name = "异常标题", width = 15)
    @ApiModelProperty(value = "异常标题")
    private String unusualName;
	/**异常内容*/
    @Excel(name = "异常内容", width = 15)
    @ApiModelProperty(value = "异常内容")
    private String unusualContent;
	/**任务表ID*/
    @Excel(name = "任务表ID", width = 15)
    @Dict(dictTable = "ins_task", dicText = "task_name", dicCode = "id")
    @ApiModelProperty(value = "任务表ID")
    private String taskId;
	/**点位ID*/
    @Excel(name = "点位ID", width = 15)
    @Dict(dictTable = "ins_point", dicText = "point_name", dicCode = "id")
    @ApiModelProperty(value = "点位ID")
    private String pointId;
	/**状态1处理中；2已解决*/
    @Excel(name = "状态", width = 15, dicCode = "unusual_status")
    @Dict(dicCode = "unusual_status")
    @ApiModelProperty(value = "状态")
    private String status;
	/**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    //追溯表集合
    @TableField(exist = false)
    private List<InsClassesUnusualMsgCourse> courseList;
    //问题表集合
    @TableField(exist = false)
    private List<InsClassesUnusualMsgIssue> issueList;
    //开始时间
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField(exist = false)
    private Date startDate;
    //结束时间
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField(exist = false)
    private Date endDate;

}
